package com.yunna.compose

import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.launch

class MainViewModel : ViewModel() {
    private val TAG = "MainViewModel"

    val number1 = MutableStateFlow("2323")

    public fun test() {
        viewModelScope.launch {
            number1.emit(Math.random().toString())
        }
    }



    fun performLogin(username: String, password: String){
        Log.i(TAG, "performLogin: $username  $password")
    }
}